#ifndef HOMEINTERFACE_H
#define HOMEINTERFACE_H

#include <QMainWindow>
#include <QTcpSocket>

namespace Ui {
class HomeInterface;
}

class HomeInterface : public QMainWindow
{
    Q_OBJECT

public:
    explicit HomeInterface(QWidget *parent = 0);
    ~HomeInterface();

signals:
    void signalReturn();

protected:
    void closeEvent(QCloseEvent *event);

private slots:
    void on_pushButton_return_clicked();

    void on_pushButton_room_clicked();

    void on_pushButton_wendu_clicked();

    void on_pushButton_yule_clicked();

private:
    Ui::HomeInterface *ui;
    bool flagLed;
    bool flagFan;
    bool flagSpeaker;
    QTcpSocket *tcpSocket;
};

#endif // HOMEINTERFACE_H
